﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddEditArticle.ascx.cs" Inherits="AdminCP_AdminControls_AddEditArticle" %>
<div runat="server" id="scriptEpoch">
</div>
<asp:Panel runat="server" ID="pnlAddEditArticle" DefaultButton="btnOK" Style="float: left;">
    <table class="listing form" cellpadding="0" cellspacing="0">
        <tr>
            <th class="full" colspan="2">
                <%= header + " " +Resources.Lang.Categories%>
            </th>
        </tr>
        <tr>
            <td class="first" width="172" style="height: 43px">
                <strong>
                    <%=Resources.Lang.Name %>
                </strong>
            </td>
            <td class="last" style="width: 85%; height: 43px;">
                <%=Resources.Lang.English %>
                :&nbsp;<asp:TextBox ID="txtNameEn" runat="server" Width="190px"></asp:TextBox>&nbsp;&nbsp;&nbsp;<%=Resources.Lang.Vietnamese %>:&nbsp;<asp:TextBox
                    ID="txtNameVi" runat="server" Width="190px"></asp:TextBox><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorNameEn" runat="server" ControlToValidate="txtNameEn"
                    SetFocusOnError="True" Font-Bold="True" ValidationGroup="ArticleGroup"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorNameVi" runat="server" ControlToValidate="txtNameVi"
                    SetFocusOnError="True" Font-Bold="True" ValidationGroup="ArticleGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="bg">
            <td class="first" width="172">
                <strong>
                    <%=Resources.Lang.Description %>
                </strong>
            </td>
            <td class="last" style="width: 190px">
                <br />
                <b>
                    <%=Resources.Lang.English %>
                    :&nbsp;</b>&nbsp;<br />
                <textarea id="txaDesCatEn" runat="server"></textarea>&nbsp;&nbsp;
                <br />
                <b>
                    <%=Resources.Lang.Vietnamese %>
                    :&nbsp;</b>&nbsp;<br />
                <textarea id="txaDesCatVi" runat="server"></textarea>
            </td>
        </tr>
        <tr>
            <td class="first" width="172" style="height: 24px">
                <strong>
                    <%=Resources.Lang.Image %>
                </strong>
            </td>
            <td class="last" style="width: 190px; height: 24px">
                <asp:TextBox ID="txtImage" runat="server" Width="190px"></asp:TextBox>
                <input type="button" value="<%=Resources.Lang.ChooseImage %>" onclick="open('ImageManager.aspx?location=categories&idFill=<%=Server.UrlEncode(this.txtImage.ClientID) %>','','menubar,width=640,height=480');" />
            </td>
        </tr>
        <tr>
            <td class="first" width="172" style="height: 24px">
                <strong>
                    <%=Resources.Lang.Sequence%>
                </strong>
            </td>
            <td class="last" style="width: 190px; height: 24px">
                <asp:TextBox ID="txtSequence" runat="server" Width="190px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="first" style="height: 19px">
                <strong>
                    <%=Resources.Lang.ArticleType %>
                </strong>
            </td>
            <td class="last" style="height: 19px; width: 190px;">
                <asp:DropDownList ID="drptype" runat="server">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td class="first" style="height: 19px">
                <strong>
                    <%=Resources.Lang.Visible %>
                </strong>
            </td>
            <td class="last" style="height: 19px; width: 190px;">
                <asp:DropDownList ID="drpActive" runat="server">
                </asp:DropDownList></td>
        </tr>
         <tr>
            <td class="first" style="height: 19px">
                <strong>
                    Top
                </strong>
            </td>
            <td class="last" style="height: 19px; width: 190px;">
                <asp:DropDownList ID="drptop" runat="server">
                </asp:DropDownList></td>
        </tr>
    </table>
    <br />
    <center>
        <asp:Button ID="btnOK" runat="server" Text="OK" Width="50px"
            ValidationGroup="ArticleGroup" 
            OnClientClick="tinyMCE.triggerSave(false,true);" onclick="btnOK_Click" /></center>
</asp:Panel>
<br />
<br />

